﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Criterion;
using NHibernate.SqlCommand;

namespace Database.Hibernate
{
    public class RandomOrder:Order
    {
        public RandomOrder() : base("", true) { }
        public override NHibernate.SqlCommand.SqlString ToSqlString(NHibernate.ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            return new SqlString("newid()");
        }
    }
}
